From: Rotem Liss Date: Fri, 25 Jul 2008 13:59:24 +0000 (+0000) Subject: API change: Registration time of users registered before the DB field was created... X-Git-Tag: 1.31.0-rc.0~46376 X-Git-Url: http://git.cyclocoop.org//%22http:/%22.attribut_html%28%24lesurls%5B%24numero%5D%29.%22/%22?a=commitdiff_plain;h=81874262b1fc819d97f2437c770f38baea7f6762;p=lhc%2Fweb%2Fwiklou.git API change: Registration time of users registered before the DB field was created is now shown as empty instead of the current time. --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index d47035dfe6..86ee8ecbb4 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -37,7 +37,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN === API changes in 1.14 === -None yet +* Registration time of users registered before the DB field was created is now + shown as empty instead of the current time. === Languages updated in 1.14 === diff --git a/includes/api/ApiQueryUsers.php b/includes/api/ApiQueryUsers.php index 734ebcda35..4a60a1968a 100644 --- a/includes/api/ApiQueryUsers.php +++ b/includes/api/ApiQueryUsers.php @@ -100,7 +100,7 @@ if (!defined('MEDIAWIKI')) { if(isset($this->prop['editcount'])) $data[$r->user_name]['editcount'] = $r->user_editcount; if(isset($this->prop['registration'])) - $data[$r->user_name]['registration'] = wfTimestamp(TS_ISO_8601, $r->user_registration); + $data[$r->user_name]['registration'] = wfTimestampOrNull(TS_ISO_8601, $r->user_registration); if(isset($this->prop['groups'])) // This row contains only one group, others will be added from other rows if(!is_null($r->ug_group))